package com.briup.cms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.briup.cms.bean.User;
import com.briup.cms.bean.extend.UserExtend;

import java.util.List;

public interface IUserService {
    public User login(String username, String password);

    public void save(User user);

    public User queryById(Long id);

    public void setVip(Long id);

    public void update(User user);

    public void deleteByBatch(List<Long> ids);

    public IPage<UserExtend> query(Integer pageNum, Integer pageSize, String username, String status, Integer roleId, Integer isVip);

    List<User> getAllUser();
}
